package cn.echo.ecc.feign;

import cn.echo.ecc.domain.User;
import cn.echo.ecc.fallback.UserServiceFallbackFactory;
import cn.echo.ecc.result.JSONResult;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;

import java.util.List;

@FeignClient(value = "service-user",fallbackFactory = UserServiceFallbackFactory.class)
public interface UserService {

    @RequestMapping(value = "/user/listUser/{ids}",method = RequestMethod.GET)
    JSONResult listUser(@PathVariable("ids")Object[] ids);

    @RequestMapping(value = "/user/{id}",method = RequestMethod.GET)
    JSONResult get(@PathVariable("id")Long id);
}
